<script>xoops_url="<{$xoops_url}>";</script>
<script src="<{$xoops_url}>/modules/xanhte/js/lib/prototype.js"></script>
<script src="<{$xoops_url}>/modules/xanhte/js/admanage.js"></script>

<h3><{$smarty.const._MI_AD_TIMELINE_TITLE}></h3>
<div class="tips"><{$smarty.const._MI_AD_TIMELINE_EDIT_DESC}></div>
<{if count($errors)>0}>
<ul class="error">
	<{foreach from=$errors item=e}>
	<li><{$e}></li>
	<{/foreach}>
</ul>
<{/if}>

<h4><{$smarty.const._MI_AD_AF_admtl_adtype}></h4>
<div><{$smarty.const._MI_AD_TIMELINE_EDIT_GREP}><br>
<{form_input name="admtl_adtype" attr="id='adtype' onchange='changeOptions(this.value, \"adid\", $(\"adid\").value,\"ad\");'"}></div>
<br>
<br>
<form action="index.php" method="post">
<input type="hidden" name="admtl_id" value="<{$form.admtl_id}>">
<table cellspacing="1" class="outer">
<tr class="head"><th colspan="2"><{$smarty.const._MI_AD_AD_INPUT_BELOW}></th></tr>
<tr class="odd">
	<th><{form_name name="admtl_adid"}></th>
	<td><{form_input name="admtl_adid" attr='id="adid"'}></td>
</tr>
<{if $form.admtl_id}>
<tr class="even">
	<th>ID</th>
	<td><{$form.admtl_id}></td>
</tr>
<{/if}>
<tr class="odd">
	<th><{form_name name="admtl_name"}></th>
	<td><{form_input name="admtl_name" attr='size="50"'}></td>
</tr>
<tr class="even">
	<th><{form_name name="admtl_week"}></th>
	<td><{form_input name="admtl_week"}></td>
</tr>
<tr class="even">
	<th><{form_name name="admtl_from"}><br><b><{$smarty.const._MI_AD_TIMELINE_EX}>)12:34</b></th>
	<td><{form_input name="admtl_from" attr="size=8"}></td>
</tr>
<tr class="even">
	<th><{form_name name="admtl_to"}><br><b><{$smarty.const._MI_AD_TIMELINE_EX}>)23:34</b></th>
	<td><{form_input name="admtl_to" attr="size=8"}></td>
</tr>
<tr class="even">
	<th><{form_name name="admtl_status"}></th>
	<td><{form_input name="admtl_status"}></td>
</tr>
<tr class="foot">
	<td colspan="2">
	<input type="submit" name="action_admin_admanage_timeline_edit_do" value="<{$smarty.const._REGISTER}>">
	</td>
</tr>
</table>
</form>

<script>
changeOptions($('adtype').value, 'adid', <{$form.admtl_adid|intval}>, 'ad');
</script>

